﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GRMS.App_Code
{
    public class ActionEventHandler
    {
        #region Properties
        Session current;
        #endregion

        #region Constructors
        public ActionEventHandler(Session current)
        {
            this.current = current;
        }
        #endregion

        #region Methods
        public string ProcessActionEvent(ActionEvent AE)
        {
            string result = "";
            foreach (string s in AE.Script)
                result += CommonCommands.ProcessString(s, current);

            current.SetGlobal("resultDef", "");
            return result;
        }
        #endregion
    }
}
